from Tools.scripts.var_access_benchmark import B
from selenium.webdriver.common.by import By

from loc.login_page_locators import LoginPageLocators


class Base:
    def __init__(self, driver):
        self.driver = driver

    def input_text(self,loc,text):
        self.driver.find_element(*loc).send_keys(text)
        return self   #链式调用

    def click(self,loc):
        self.driver.find_element(*loc).click()

    def get_text(self,loc):
        return self.driver.find_element(*loc).text





